function showSysMsg(errorCode,msg) {
	$('#sysInfo').text(msg);
	$('#sysInfo').removeClass('alert-success');
	$('#sysInfo').removeClass('alert-danger');
	if (errorCode==0) {
		$('#sysInfo').addClass('alert-success');
	} else{
		$('#sysInfo').addClass('alert-danger');
	};
	
	$('#sysInfo').show().delay(2000).fadeOut();
}

function dataPretreatment(response) {
	var data = response.data;
	return data;
}

function deleteRow(id) {
	$('#deleteModal').modal();
	$('#deleteModal #deleteId').val(id);
}
